<?php

$url = $this->context->id . '/' . $this->context->action->id;
?>
    <div class="ui-layout-center ui-layout-pane">
        <div class="container-div">
            <div class="row">
                <div class="col-sm-12 search-collapse" style="display: block">
                    <div class="layui-card-body">
                        <div class="layui-collapse like-layui-collapse" lay-accordion=""
                             style="border:1px dashed #c4c4c4">
                            <div class="layui-colla-item">
                                <h2 class="layui-colla-title like-layui-colla-title" style="background-color: #fff">操作提示<i
                                            class="layui-icon layui-colla-icon"></i></h2>
                                <div class="layui-colla-content layui-show">
                                    <p>*具体请仔细看配置说明；</p>
                                </div>
                            </div>
                        </div>
                    </div>
                    <form class="form-horizontal" id="form-config-site-site">
                        <div class="form-group">
                            <label class="col-sm-2 control-label is-required">小程序Appid：</label>
                            <div class="col-sm-9">
                                <input type="text" name="a_appid" value="<?= $model->a_appid ?>" class="form-control"
                                       autocomplete="off" required>
                                <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 请在<a href="https://mp.weixin.qq.com" target="_blank">微信公众平台查看</a>，开发管理 =》开发设置（AppID(小程序ID)）</span>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label is-required">小程序Secret：</label>
                            <div class="col-sm-9">
                                <input type="text" name="a_secret" value="<?= $model->a_secret ?>" class="form-control"
                                       autocomplete="off" required>
                                <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 请在<a href="https://mp.weixin.qq.com" target="_blank">微信公众平台查看</a>，开发管理 =》开发设置（AppSecret(小程序密钥)）</span>
                            </div>
                        </div>
                        <div class="form-group text-center mt20">
                            <a href="javascript:;" class="btn btn-success btn-mid b5submit_btn"
                               data-target="form-config-site-site" data-title="确定提交小程序信息设置"
                               data-url="<?= \yii\helpers\Url::to(['tran']) ?>">保存</a>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
<?php $this->beginBlock('script'); ?>

<?php $this->endBlock(); ?>